package com.zbkj.crmeb.order.request;

import com.alibaba.fastjson.JSONObject;
import com.zbkj.crmeb.store.response.StoreCartResponse;
import com.zbkj.crmeb.store.vo.StoreOrderInfoVo;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class LavitaOrderRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    private String token; //是 string令牌 -
    private String orderId; //是 stringAPI 那边的单号 -
    private String totalPay; //是 string整单需要支付多少钱 未扣除优惠券金额，已包含邮费
    private String couponPay; //是 string优惠券抵扣金额 -
    private String freightPay; //是 string运费 -
    private String freightPayType; //是 string0 快递 1 自提 -
    private List<OrderInfo> productList; //是 array 具体商品详情
    private String exchangeCode; //否 string优惠券的兑换码 -
    private String pickUpCode; //否 string提货码 -
    private String consignee; //否 string收件人姓名 -
    private String phone; //否 string收件人电话 -
    private String provincial; //否 string收件人省 -
    private String city; //否 string收件人市 -
    private String area; //否 string收件人区 -
    private String address; //否 string收件人地址 -
    private String postalcode; //否 string收件人邮编 -

    @Data
    public static class OrderInfo {
        private Integer productId; // 是 INT 商品信息 ID -
        private String skuCode; // 是 string 商品条码 -
        private String qty; // 是 string 商品的数量 -
        private String price; //商品价格
    }

}
